home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / animTests / tcbboxes.s3d < prev    next >
Text File  |  2000-05-30  |  6KB  |  199 lines

  1. DEF world-TIMER TimeSensor {
  2.     loop TRUE
  3.     cycleInterval 3.333
  4. }
  5. # TCB
  6. DEF Box01 Transform {
  7.     translation -39.25 0 99.57
  8.     children [
  9.         Transform {
  10.             translation -60.75 0 0.4343
  11.             children [
  12.                 Shape {
  13.                     appearance [
  14.                         MultiAppearance {
  15.                             material Material {
  16.                                 diffuseColor 0.6039 0.6039 0.898
  17.                             }
  18.                         }
  19.                     ]
  20.                     geometry MultiMesh {
  21.                         coord Coordinate {
  22.                             point [
  23.                                 -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  24.                             ]
  25.                         }
  26.                         coordIndex [
  27.                             0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  28.                             2 0 4 -1 4 6 2 -1
  29.                         ]
  30.                         edgeVisibleIndex [
  31.                             1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1
  32.                             1 1 0 -1 1 1 0 -1
  33.                         ]
  34.                         smoothingIndex [
  35.                             2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  36.                         ]
  37.                         appearanceIndex [
  38.                             1 1 0 0 4 4 3 3 5 5 2 2
  39.                         ]
  40.                         textureMappings [
  41.                         ]
  42.                     }
  43.                 }
  44.                 DEF Box01-POS-INTERP TCBVecInterpolator {
  45.                     key [
  46.                         0 0.5 1
  47.                     ]
  48.                     keyValue [
  49.                         -39.25 0 99.57 0 0 0 0 0
  50.                         -39.25 0 -100.4 -0.68 0.056 -0.852 1 1
  51.                         79.85 0 -62.73 0 0 0 0 0
  52.                     ]
  53.                 }
  54.                 ROUTE world-TIMER.fraction_changed TO Box01-POS-INTERP.set_fraction
  55.                 ROUTE Box01-POS-INTERP.value_changed TO Box01.set_translation
  56.                 DEF Box01-ROT-INTERP TCBOrientationInterpolator {
  57.                     key [                        0 0.5 1
  58.  
  59.                     ]
  60.                     keyValue [
  61.                         0 1 0 0    0    0    0    0    0
  62.                         0 1 0 -1.562    0    0    0    0    0
  63.                         0 1 0 -2.033    0    0    0    0    0
  64.                     ]
  65.                 }
  66.                 ROUTE world-TIMER.fraction_changed TO Box01-ROT-INTERP.set_fraction
  67.                 ROUTE Box01-ROT-INTERP.value_changed TO Box01.set_rotation
  68.             ]
  69.         }
  70.                 DEF Box02 Transform {
  71.                     translation 48.02 0 -45.1
  72.                     children [
  73.                         Shape {
  74.                             appearance [
  75.                                 MultiAppearance {
  76.                                     material Material {
  77.                                         diffuseColor 0.3451 0.7804 0.8824
  78.                                     }
  79.                                 }
  80.                             ]
  81.                             geometry MultiMesh {
  82.                                 coord Coordinate {
  83.                                     point [
  84.                                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  85.                                     ]
  86.                                 }
  87.                                 coordIndex [
  88.                                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  89.                                     2 0 4 -1 4 6 2 -1
  90.                                 ]
  91.                                 edgeVisibleIndex [
  92.                                     1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1
  93.                                     1 1 0 -1 1 1 0 -1
  94.                                 ]
  95.                                 smoothingIndex [
  96.                                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  97.                                 ]
  98.                                 appearanceIndex [
  99.                                     1 1 0 0 4 4 3 3 5 5 2 2
  100.                                 ]
  101.                                 textureMappings [
  102.                                 ]
  103.                             }
  104.                         }
  105.                     ]
  106.                 }
  107.     ]
  108. }
  109. DEF Camera01 Viewpoint{
  110.     position 2.983 113.4 362.3
  111.     orientation 0.9614 -0.2725 -0.03926 -0.2975
  112.     fieldOfView 0.6024
  113.     description "Camera01"
  114. }
  115. DEF Camera01.Target Transform {
  116.     translation -28.44 0 -21.85
  117.     children [
  118.     ]
  119. }
  120. # S3D Plugin Sampled
  121. DEF Box03 Transform {
  122.     translation -39.25 0 99.57
  123.     children [
  124.         Transform {
  125.             translation -60.75 0 0.4343
  126.             children [
  127.                 Shape {
  128.                     appearance Appearance {
  129.                         material Material {
  130.                             emissiveColor 1 0 0
  131.                         }
  132.                     }
  133.                     geometry IndexedLineSet {
  134.                         coord Coordinate {
  135.                             point [
  136.                                 -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  137.                             ]
  138.                         }
  139.                         coordIndex [
  140.                             0 2 3 -2 3 1 0 -2 4 5 7 -2 7 6 4 -2 0 1 5 -2 5 4 0 -2 1 3 7 -2 7 5 1 -2 3 2 6 -2 6 7 3 -2
  141.                             2 0 4 -2 4 6 2 -2
  142.                         ]
  143.                     }
  144.                 }
  145.                 DEF Box03-POS-INTERP PositionInterpolator {
  146.                     key [
  147.                         0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9
  148.                         0.95 1
  149.                     ]
  150.                     keyValue [
  151.                         -39.25 0 99.57 -57.16 0 39.73 -69.9 0 -9.797 -76.16 0 -47.43 -76.21 0 -73.49
  152.                         -71.35 0 -89.56 -63.44 0 -97.92 -54.55 0 -101.1 -46.61 0 -101.4 -41.17 0 -100.8 -39.25 0 -100.4
  153.                         -37.51 0 -100.1 -32.38 0 -99.25 -24.16 0 -97.71 -13.29 0 -95.46 -0.3166 0 -92.42 14.17 0 -88.48
  154.                         29.64 0 -83.58 45.72 0 -77.65 62.33 0 -70.68 79.85 0 -62.73
  155.                     ]
  156.                 }
  157.                 ROUTE world-TIMER.fraction_changed TO Box03-POS-INTERP.set_fraction
  158.                 ROUTE Box03-POS-INTERP.value_changed TO Box03.set_translation
  159.                 DEF Box03-ROT-INTERP OrientationInterpolator {
  160.                     key [
  161.                         0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9
  162.                         0.95 1
  163.                     ]
  164.                     keyValue [
  165.                         0 1 0 0 0 1 0 -0.1611 0 1 0 -0.3299 0 1 0 -0.503 0 1 0 -0.6772 0 1 0 -0.8492
  166.                         0 1 0 -1.016 0 1 0 -1.174 0 1 0 -1.319 0 1 0 -1.45 0 1 0 -1.562 0 1 0 -1.653 0 1 0 -1.726
  167.                         0 1 0 -1.784 0 1 0 -1.829 0 1 0 -1.866 0 1 0 -1.897 0 1 0 -1.926 0 1 0 -1.957 0 1 0 -1.991
  168.                         0 1 0 -2.033
  169.                     ]
  170.                 }
  171.                 ROUTE world-TIMER.fraction_changed TO Box03-ROT-INTERP.set_fraction
  172.                 ROUTE Box03-ROT-INTERP.value_changed TO Box03.set_rotation
  173.             ]
  174.         }
  175.         DEF Box04 Transform {
  176.             translation 48.02 0 -45.1
  177.             children [
  178.                 Shape {
  179.                     appearance Appearance {
  180.                         material Material {
  181.                             emissiveColor 0 0 1
  182.                         }
  183.                     }
  184.                     geometry IndexedLineSet {
  185.                         coord Coordinate {
  186.                             point [
  187.                                 -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  188.                             ]
  189.                         }
  190.                         coordIndex [
  191.                             0 2 3 -2 3 1 0 -2 4 5 7 -2 7 6 4 -2 0 1 5 -2 5 4 0 -2 1 3 7 -2 7 5 1 -2 3 2 6 -2 6 7 3 -2
  192.                             2 0 4 -2 4 6 2 -2
  193.                         ]
  194.                     }
  195.                 }
  196.             ]
  197.         }
  198.     ]
  199. }